home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Games Room
/
The Games Room.iso
/
system
/
c
/
least.doc
< prev
next >
Wrap
Text File
|
1996-09-08
|
9KB
|
205 lines
NAME
Least
- simple and handsome text viewer
VERSION
0.04 (Sorry, no higher version number possible, because
Least
emerges only from a little one day screen
hack.)
SYNOPSIS
Least
[<filename>]
DISCLAIMER
Although every effort has been made to have a correct
function depending on the description in this document,
the author is
not
responsible for any damage the use of
this program does and expresses no warranty on the fault-
lessness of the program.
You are entirely responsible on your own risk for all
things sustained by the legal use or misuse.
PURPOSE
Least
is for all those folks distributing texts and docs
without having an adequate displaying tool to supply with.
You need no granted permission from me, if you distribute
Least
in unmodified form and include always this document.
DESCRIPTION
Least
is a simple tool for the purpose of viewing text fi-
les of all kind like
More
,
Less
,
MuchMore
etc. The special
advantage of
Least
is its short size, fast loading of fi-
les, very fast string searching (
Least
makes use of the
Boyer-Moore
algorithm) and low (!) functionality. It is
only intended to supply the most frequently used functions
of a text viewer (who uses such despised BASIC commands
like goto line # ?).
Least
uses for its own window the size of the actual Work-
bench screen, so overscan mode is supported, too. Like
other tools in this category
Least
maintains a status line
appearing at the top of the window and maintaining small
pieces of possible information about the current file. You
will see the first portion (25 characters) of the file-
name, the filesize measured in bytes, the number of lines
and the number of the line currently been displayed at the
top of the window.
Least
also supports the great FileRequester from
Reque-
ster.Library
. In a special version of
Least
- called
LeastP
- you are able to load and view files crunched with
the
PowerPacker
.
For those who don't like to completely read this document
to become familiar with the commands,
Least
provides also
a short online help.
USAGE
If you invoke Least from CLI you just type
Least
following
a blank and afterwards the name of the text file to be
displayed.
Workbench users are recommended to insert the name of
Least
including its search path in the
Default Tool
field
of the
info
-file belonging to the desired text file (click
once at the icon of the text file and choose from the
workbench menu the
Info
entry. The
Info
window appears.
Now you can click with the left mouse button in the field
Default Tool
. There you can type the name as mentioned
above. Afterwards click at the
Save
field in the lower
left corner.). Now the only thing you must do is double
clicking at the icon of your text file.
Alternatively you can type from CLI only Least (from Work-
bench only double click at Least's icon) and
Least
will
bring up a file requester to select a valid file name.
COMMANDS
<CRSR UP>
,
<BACKSPACE>
: Show previous line
<CRSR DOWN>
,
<SPACE>
: Show next line
<SHIFT><CRSR UP>
,
<PGUP>
: Show previous page
<SHIFT><CRSR DOWN>
,
<PGDN>
: Show next page
<ALT><CRSR UP>
: Scroll 10 lines up
<ALT><CRSR DOWN>
: Scroll 10 lines down
T
,
<HOME>
,
<CTRL><CRSR UP>
: Display top of file
B
,
<END>
,
<CTRL><CRSR DOWN>
: Display bottom of file
F
,
S
: Search string
(Req.Library necessary)
N
: Next occurence
L
,
O
: Display another file
(Req.Library necessary)
H
,
<HELP>
: Provides short online help
Q
,
X
,
<ESC>
,
CloseGadget
: Exit from
Least
SPEED
One of the outstanding features
Least
supports, is it's
high speed file loading. Let's say you have to load an
approximately 150k byte large file from your internal
floppy disk, not formatted with the new FFS. The following
table shows how much time loading took, when using one of
the booked editors or text viewer.
Tool ª Version ª Kind ª Time [s]
-------------+-----------+--------+-----------
Least
ª 0.04 ª Viewer ª 7!!
CygnusEd ª 1.12 ª Editor ª 8
MicroEmacs ª 1.40 ª Editor ª 12
Ed ª 2.00 ª Editor ª 12
Z ª 2.20 ª Editor ª 13
MuchMore ª 3.00 ª Viewer ª 13
One rule one can derive from this list:
The
higher
the version number, the
slower
the speed.
Editors like Less and More are left out of consideration,
because they did not load the whole file (only the dis-
played portion, while the file remains open during the
whole viewing process).
To have a look at the fast string searching, only take one
extremely large file - approximately 2 Mega byte - , load
it with one of those editors or viewers mentioned above,
search for one string that only occurs at the end of the
file, compare the times each tool took for this operation
with that of
Least
... and enjoy.
SPECIAL FEATURE
As a counteraction against the continually growing number
of viruses,
Least
comes with an integrated link virus de-
tector. Its only purpose is to check, if
Least
got infec-
ted by a virus. But it is not possible to scan other exe-
cutable files.
BUGS
(better say LIMITS)
Depending on the way
Least
's internal data structures were
implemented, two known limits exist.
First, displaying lines longer than the actual window size
isn't supported. That means, that indeed the line is com-
pletely displayed, but in two lines on the screen. Inter-
nally only one line is counted. So as the effect is noti-
ced that the uppermost line scrolls out of the display and
will never been seen again ...
If you like to see all of your document use shorter lines.
The second problem arises when using control codes for
bold, italics, underline etc. All lines in the document
using such codes must end with a reset to the normal dis-
play mode. If you don't pay any attention on this, the at-
tuned mode remains active and you will see what occurs
when scrolling backwards ...
SOURCE
Source isn't distributed yet, because that would lead to a
great variety of different versions of the program. Also
in that case the virus detection algorithm would become
public (especially to programmers of viruses).
COPYRIGHT
No copyright. Use and copy as you like it, but neverthe-
less only distribute in unmodified form and together with
this document. You may freely distribute it as long as no
charge is made other than a fee to recover costs for copy-
ing and distribution. The fee should not be higher as ob-
taining a disk from Fred Fish. The distributor agrees to
stop distributing of all files belonging to this document,
if requested by the author.
TRADEMARKS
PowerPacker
⌐ 1990 by Nico Franτois
Requester.Library
⌐ 1989 by Colin Fox and Bruce Dawson
AUTHOR
If you have any important questions, remarks or you want
to propose any fundamental enhancements, don't fail to
contact :
Thorsten Koschinski
Meisenweg 10
W-2082 Uetersen
Federal Republic of Germany
Monetary donations of all kind are not welcome (don't mess
with those declaring themself as starving artists). If you
still feel forced to do anything charitable, perhaps send
any program or other stuff of your own.
(formatted 03-August-1992)